﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;
using Message;

namespace ServerBattle
{
    public class ServerBattleFeature : Feature
    {
        public override void OnInit()
        {
            AddSystem<MessageHandlerInstanceSystem>();
            AddSystem<ConnectSystem>();

            new AnalysisMessageAssembly(typeof(TickOutside).Assembly).Publish();
            //new AnalysisMessageAssembly(typeof(TickInside).Assembly).Publish();
            new AnalysisHandlerAssembly(GetType().Assembly).Publish();

            new ListenTcp(8000).Publish();
        }
    }
}
